//
//  NewsNet.h
//  SportSocial
//
//  Created by yull on 14/12/13.
//  Copyright (c) 2014年 yull. All rights reserved.
//

#import "BaseNet.h"

@interface NewsNet : BaseNet

+ (AFHTTPRequestOperation *)getTopNewsWithSuccessBlock:(httpSuccessBlock)successBlock
                                             failBlock:(httpFailBlock)failBlock;

+ (AFHTTPRequestOperation *)paginateNewsWithPageNumber:(NSInteger)pageNumber
                                              pageSize:(NSInteger)pageSize
                                          successBlock:(httpSuccessBlock)successBlock
                                             failBlock:(httpFailBlock)failBlock;

+ (AFHTTPRequestOperation *)getTopKnowLedgeWithSuccessBlock:(httpSuccessBlock)successBlock
                                                  failBlock:(httpFailBlock)failBlock;

+ (AFHTTPRequestOperation *)paginateKnowLedgeWithPageNumber:(NSInteger)pageNumber
                                                   pageSize:(NSInteger)pageSize
                                               successBlock:(httpSuccessBlock)successBlock
                                                  failBlock:(httpFailBlock)failBlock;

+ (AFHTTPRequestOperation *)queryWithId:(NSInteger)newsId
                           successBlock:(httpSuccessBlock)successBlock
                              failBlock:(httpFailBlock)failBlock;

+ (AFHTTPRequestOperation *)getNewsCommentWithNewsId:(UInt64)newsId
                                             pageNum:(NSInteger)pageNum
                                            pageSize:(NSInteger)pageSize
                                        successBlock:(httpSuccessBlock)successBlock
                                           failBlock:(httpFailBlock)failBlock;

+ (AFHTTPRequestOperation *)sendNewsCommentWithNewsId:(UInt64)newsId
                                              comment:(NSString *)comment
                                         successBlock:(httpSuccessBlock)successBlock
                                            failBlock:(httpFailBlock)failBlock;

+ (AFHTTPRequestOperation *)isNewsFavoriteWithNewsId:(UInt64)newsId
                                        successBlock:(httpSuccessBlock)successBlock
                                           failBlock:(httpFailBlock)failBlock;

+ (AFHTTPRequestOperation *)addNewsToFavoriteWithNewsId:(UInt64)newsId
                                           successBlock:(httpSuccessBlock)successBlock
                                              failBlock:(httpFailBlock)failBlock;

+ (AFHTTPRequestOperation *)removeNewsFromFavoriteWithNewsId:(UInt64)newsId
                                                successBlock:(httpSuccessBlock)successBlock
                                                   failBlock:(httpFailBlock)failBlock;

+ (AFHTTPRequestOperation *)getNoticeNewsWithSuccessBlock:(httpSuccessBlock)successBlock
                                                            failBlock:(httpFailBlock)failBlock;

+ (AFHTTPRequestOperation *)getNoticeKnowLedgeWithSuccessBlock:(httpSuccessBlock)successBlock
                                                failBlock:(httpFailBlock)failBlock;
@end
